#ifndef IMPORTBYHAND_H
#define IMPORTBYHAND_H

#include <QWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QMessageBox>
#include <QSqlQuery>

#include "entity.h"
#include "fhmainwindow.h"
class importbyhand : public QWidget
{
    Q_OBJECT
public:
    importbyhand(QSqlDatabase& db, int index, QWidget *parent = nullptr);
    ~importbyhand();

signals:

private:
    QSqlDatabase& fhDatabase; // 引用传递数据库对象
    QList<QLineEdit *> lineEdits; // 用于存储所有输入框的指针

private slots:
    void onInsertFhklButtonClicked();
    void onInsertSampleButtonClicked();
    void onInsertExperimentButtonClicked();
    void closed();
};

#endif // IMPORTBYHAND_H
